package com.itheima.Enum;

import lombok.Getter;

@Getter
public enum CementTypeEnum {
    NOTICES(0,"通知"),
    CEMENT(1,"公告");
    private Integer type;
    private String desc;
    CementTypeEnum(Integer type, String desc){
        this.desc = desc;
        this.type = type;
    }
    public static CementTypeEnum getType (Integer type){
            for (CementTypeEnum item: CementTypeEnum.values()){
                if (item.getType().equals(type)) {
                    return item;
                }
            }
        return null;
    }



}
